package com.timguan.render.api.entity;

import net.pocrd.annotation.Description;

import java.io.Serializable;

/**
 * Created by guankaiqiang on 2014/12/15.
 */
@Description("分页信息")
public class PageInfo implements Serializable {
    @Description("请求的页码编号")
    public int     pageIndex;
    @Description("请求的页大小")
    public int     pageSize;
    @Description("是否有更多商品用作展示(fastSaleInfos.size()>pageSize?true:false)")
    public boolean hasMore;
    @Description("总的数量")
    public int     totalCount;
    @Description("总的页数,tolalCount%pageSize!=0?totalPageCount/pageSize+1:totalPageCount/pageSize")
    public int     totalPageCount;
    public int getPageIndex() {
        return pageIndex;
    }
    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }
    public int getPageSize() {
        return pageSize;
    }
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
    public boolean isHasMore() {
        return hasMore;
    }
    public void setHasMore(boolean hasMore) {
        this.hasMore = hasMore;
    }
    public int getTotalCount() {
        return totalCount;
    }
    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }
    public int getTotalPageCount() {
        return totalPageCount;
    }
    public void setTotalPageCount(int totalPageCount) {
        this.totalPageCount = totalPageCount;
    }
    public PageInfo() {}
}
